<template>
  <div class="recommend">
    <span class="thumb" :class="type === 0 ? 'icon-thumb_up' : 'icon-thumb_down'"></span>
    <span v-for="(orderItem, k) in item.recommend" :key="k" class="orderItem">{{
      orderItem
    }}</span>
  </div>
</template>

<script>
export default {
  name: "recommend",
  props: ["type", "item"],
};
</script>

<style lang="scss" scoped>
.recommend {
  line-height: 16px;
  vertical-align: center;
  font-size: $sm-size;
  margin-right: 8px;
  .icon-thumb_up {
    color: $e-dblue;
  }
  .icon-thumb_down {
    color: $e-grey;
  }
  .orderItem {
    padding: 0 6px;
    margin-right: 8px;
    display: inline-block;
    overflow: hidden;
    font-size: 9px;
    color: $e-dgrey;
    border: 1px solid eleblack(0.1);
    border-radius: 2px;
    background-color: $e-white;
    &:last-child {
      margin-right: 0;
    }
  }
}
</style>
